<template>
    <div>
        {{ msg }}||||{{ fu1() }}
        <div v-if="flag === 1">是否展示flag</div>
        <div v-else>flag不是1</div>


        <template v-if="ok">
            <h1>Title</h1>
            <p>Paragraph 1</p>
            <p>Paragraph 2</p>
        </template>
        <div v-for="(item, index) in arr" :key="index">{{ item }}</div>
    </div>

</template>

<script>
export default {
    name: "page3",
    data() {
        return {
            msg: "23232323",
            flag: 1,
            ok: false,
            arr: ['Item 1', 'Item 2', 'Item 3']

        }
    },
    methods: {
        fu1() {
            return 123;
        }
    }

}
</script>

<style></style>